<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="rbac" uri="http://www.ebayAdmin.com/rbac"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script>
var lastObj
function showlinks(obj) {

  if(lastObj){
    if (lastObj.style.display=="none") lastObj.style.display="";else lastObj.style.display="none"
  }
  obj=obj.parentElement.nextSibling
  if (obj.style.display=="none") obj.style.display="";else obj.style.display="none"
  lastObj=obj

}
function changePassword(){
	window.open('${ctx}/admin/system/change_password.jsp', "change_pwd",  "width=800,height=600,top=100,left=120,scrollbars=auto");
}
function loginOut(){
	window.parent.location.href = '${ctx}/admin/loginOut';
}
</script>
<title></title>
<script src="${ctx}/js/prototype.lite.js" type="text/javascript"></script>
<script src="${ctx}/js/moo.fx.js" type="text/javascript"></script>
<script src="${ctx}/js/moo.fx.pack.js" type="text/javascript"></script>
<style>
body {
	font: 12px Arial, Helvetica, sans-serif;
	color: #000;
	background-color: #EEF2FB;
	margin: 0px;
}

#container {
	width: 182px;
}

H1 {
	font-size: 12px;
	margin: 0px;
	width: 182px;
	cursor: pointer;
	height: 30px;
	line-height: 20px;
}

H1 a {
	display: block;
	width: 182px;
	color: #000;
	height: 30px;
	text-decoration: none;
	moz-outline-style: none;
	background-image: url(images/menu_bgS.gif);
	background-repeat: no-repeat;
	line-height: 30px;
	text-align: center;
	margin: 0px;
	padding: 0px;
}

.content {
	width: 182px;
	height: 26px;
}

.MM ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	display: block;
}

.MM li {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	list-style-type: none;
	display: block;
	text-decoration: none;
	height: 26px;
	width: 182px;
	padding-left: 0px;
}

.MM {
	width: 182px;
	margin: 0px;
	padding: 0px;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	clip: rect(0px, 0px, 0px, 0px);
}

.MM a:link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(images/menu_bg1.gif);
	background-repeat: no-repeat;
	height: 26px;
	width: 182px;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}

.MM a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(images/menu_bg1.gif);
	background-repeat: no-repeat;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 182px;
	text-decoration: none;
}

.MM a:active {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	background-image: url(images/menu_bg1.gif);
	background-repeat: no-repeat;
	height: 26px;
	width: 182px;
	display: block;
	text-align: center;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}

.MM a:hover {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	font-weight: bold;
	color: #006600;
	background-image: url(images/menu_bg2.gif);
	background-repeat: no-repeat;
	text-align: center;
	display: block;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 182px;
	text-decoration: none;
}
</style>
</head>

<body>

	<table width="100%" height="280" border="0" cellpadding="0"
		cellspacing="0" bgcolor="#EEF2FB">
		<tr>
			<td width="182" valign="top"><div id="container">
					<h1 class="type">
						<a href="javascript:void(0)">资产管理</a>
					</h1>
					<!-- <div class="content"> -->
					<div>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="${ctx}/images/menu_topline.gif" width="182"
									height="5" /></td>
							</tr>
						</table>
						<ul class="MM">
								<li><a href="${ctx}/admin/filterRe" target="mainFrame">显示资产记录</a></li>
							
							<rbac:hasPermission permStr="/admin/create">
								<li><a href="${ctx}/admin/createRecord" target="mainFrame">新增资产记录</a></li>
							</rbac:hasPermission>
							
							<rbac:hasPermission permStr="/admin/management">
								<li><a href="${ctx}/admin/batchService" target="mainFrame">批量处理资产记录</a></li>
							</rbac:hasPermission>
							
							<%-- <rbac:hasPermission permStr="/admin/management">
								<li><a href="${ctx}/admin/listUser" class="linkblue" target="mainFrame">用户管理</a></li>
							</rbac:hasPermission> --%>
						</ul>
					</div>
					<%-- 
      <h1 class="type"><a href="javascript:void(0)">Invoice Analysis</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="${ctx}/images/menu_topline.gif" width="182" height="5" /></td>
          </tr>
        </table>
        <ul class="MM">
          <li><a href="http://www.baidu.com" target="mainFrame">List Invoice</a></li>
        </ul>
      </div>
      --%>
			<rbac:hasPermission permStr="/admin/management">
					<h1 class="type">
						<a href="javascript:void(0)">系统管理</a>
					</h1>
					<!-- <div class="content"> -->
					<div>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><img src="${ctx}/images/menu_topline.gif" width="182"
									height="5" /></td>
							</tr>
						</table>
						<ul class="MM">
								<!-- ?userName=  added by Doug on 20130208 to make sure every time here is clicked, we can show all users -->
								<li><a href="${ctx}/admin/listUser?userName= " class="linkblue" target="mainFrame">用户管理</a></li>
								<%-- <li><a href="${ctx}/admin/listUser" class="linkblue" target="mainFrame">用户管理</a></li> --%>
						</ul>
					</div>
			</rbac:hasPermission>
				</div> <script type="text/javascript">
		var contents = document.getElementsByClassName('content');
		var toggles = document.getElementsByClassName('type');
	
		var myAccordion = new fx.Accordion(
			toggles, contents, {opacity: true, duration: 400}
		);
		myAccordion.showThisHideOpen(contents[0]);
	</script></td>
		</tr>
	</table> 

	
<%-- 
  <table width="220" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top" class="lefttable"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="leftloginmsgtalbe"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="30" class="fontblue"><img src="${ctx}/images/leftloginmsgicon.gif" border="0" align="absbottom">Welcome:<span class="fontred">
              <strong>${User.userName}</strong></span></td>
            </tr>
            <tr>
              <td height="25" class="fontblue">Login Time:${User.loginTime} </td>
            </tr>
            <tr>
              <td height="1" background="${ctx}/images/leftloginmsgline.gif"></td>
            </tr>
            <tr>
              <td height="28" align="center" valign="bottom">
    			<input type="button" class="btn2" value="change password" onclick="javascript:changePassword();" />&nbsp;
    			<input type="button" class="btn1" value="Login Out" onclick="javascript:loginOut();" />
				</td>
            </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="100%" valign="top" class="lefttable">
		  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="leftmenutable">
			<tr>
			  <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			    <rbac:hasPermission permStr="/admin/listMd">
			 	<tr>
                  <td class="leftmenutd" onClick="showlinks(this);"><img src="${ctx}/images/leftmenuicon.gif" width="12" height="9">&nbsp;&nbsp;Item Manage</td>
                </tr>
				<tr style="DISPLAY:none;">
					<td class="leftsubmenutable">
						<table width="150" border="0" cellpadding="0" cellspacing="0">
						  <tr>
							<td height="20">· <a href="${ctx}/admin/listMd" class="linkblue"  target="mainFrame"> List Item</a></td>
						  </tr>
						  <tr>
							<td height="20">· <a href="${ctx}/admin/listUploadLog" class="linkblue" target="mainFrame">Item Upload Log</a></td>
						  </tr>
						  <tr>
						  	<td height="20">· <a href="${ctx}/admin/createRecord" class="linkblue" target="mainFrame">Create Record</a></td> 
						  </tr>
						</table>
					</td>
				</tr>
				</rbac:hasPermission>
				<rbac:hasPermission permStr="/admin/listInvoice">
				<tr>
                  <td class="leftmenutd" onClick="showlinks(this);"><img src="${ctx}/images/leftmenuicon.gif" width="12" height="9">&nbsp;&nbsp;Invoice Analysis</td>
                </tr>
				<tr style="DISPLAY:none;">
					<td class="leftsubmenutable">
						<table width="150" border="0" cellpadding="0" cellspacing="0">
						  <tr>
							<td height="20">· <a href="${ctx}/admin/listInvoice" class="linkblue" target="mainFrame"> List Invoice</a></td>
						  </tr>
						 </table>
					</td>
				</tr>
				</rbac:hasPermission>
				<rbac:hasPermission permStr="/admin/addUser">
				<tr>
                  <td class="leftmenutd" onClick="showlinks(this);"><img src="${ctx}/images/leftmenuicon.gif" width="12" height="9">&nbsp;&nbsp;System manage</td>
                </tr>
				<tr style="DISPLAY:none;">
					<td class="leftsubmenutable">
						<table width="150" border="0" cellpadding="0" cellspacing="0">
						  <tr>
							<td height="20">· <a href="${ctx}/admin/listUser" class="linkblue" target="mainFrame">User Manage</a></td>
						  </tr>
						  <tr>
							<td height="20">· <a href="${ctx}/admin/listEbayAct" class="linkblue" target="mainFrame">Ebay Account Manage</a></td>
						  </tr>
						 </table>
					</td>
				</tr>
				</rbac:hasPermission>
              </table></td>
			</tr>
			
			
	    </table>
	  </td>
    </tr>
  </table> --%>

</body>
</html>
